#ifdef _MAC_OS_X_
#include <SDL.h>
#include <SDL_image.h>
#include <SDL_ttf.h>
#endif
#else
#include <SDL/SDL.h>
#include <SDL/SDL_image.h>
#include <SDL/SDL_ttf.h>
#endif

class TempGameDataClass
{
	public:
		TempGameDataClass(unsigned int screenWidth, unsigned int screenHeight,
				unsigned int screenBPP)
		{
			SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO);
			this->screen = SDL_SetVideoMode(screenWidth, screenHeight, screenBPP,
					SDL_DOUBLEBUF);
			if (this->screen == NULL);
			{
				//TODO: Error out... No video
			}
		}

		~TempGameDataClass()
		{
			if (this->screen != NULL)
			{
				SDL_FreeSurface(this->screen);
			}
			if (this->thePlayer != NULL)
			{
				delete this->thePlayer;
			}
		}

		void processEvents()
		{
			while (SDL_PollEvent(&this->currentEvent))
			{
				if (this->currentEvent.type == SDL_QUIT)
				{
					this->running = false;
				}
				else if (this->currentEvent.type == SDL_KEYDOWN)
				{
					if (this->currentEvent.key == SDLK_UP)
					{
						//TODO: Up event...
					}
					else if (this->currentEvent.key == SDLK_DOWN)
					{
						//TODO: Down event...
					}
					else if (this->currentEvent.key == SDLK_LEFT)
					{
						//TODO: Left event...
					}
					else if (this->currentEvent.key == SDLK_RIGHT)
					{
						//TODO: Right event...
					}
				}
			}
		}

	private:
		SDL_Surface *screen;
		SDL_Event currentEvent;
		Player *thePlayer;
		bool running;
};

int main(int argc, char **argv)
{
	TempGameDataClass gameData;
	
	gameData.startMainLoop();
}
